package huanzhao.erp.domain.enumerate.error;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author April
 * 2024/9/22 12:14
 * @version 1.0
 */
@Getter
@AllArgsConstructor
public enum ProcessError implements BaseErrorCode {
    PROCESS_ERROR(600, "流程异常"),

    LEADER_NOT_SET(601, "未设置主管"),
    MAINTAIN_LEADER_NOT_SET(602, "未设置维修主管"),
    QUALITY_LEADER_NOT_SET(603, "未设置质检主管"),
    PURCHASE_LEADER_NOT_SET(604, "未设置采购主管"),
    WAREHOUSE_LEADER_NOT_SET(605, "未设置仓库主管"),
    TEAM_LEADER_NOT_SET(605, "未设置团队主管"),
    TEAM_NOT_SET(605, "未设置团队"),

    TEAM_NOT_FOUND(610, "未找到团队"),
    DEPARTMENT_NOT_FOUND(611, "未找到部门"),
    STAFF_NOT_FOUND(612, "未找到员工"),
    ADMIN_NOT_FOUND(613, "未找到管理员"),

    STAFF_NOT_SET(620, "未设置相关人员"),

    ADMIN_HOLD_A_POST(630, "管理员正在担任其他职务"),
    STAFF_HOLD_A_POST(631, "员工正在担任其他职务"),

    STAFF_HOLD_TASKS(640, "员工正在执行任务"),
    TEAM_HOLD_TASKS(641, "团队还有进行中的任务"),

    TEAM_REMAIN_STAFF(650, "团队仍有员工"),

    ;
    private final int code;
    private final String message;
}
